
use fltk::browser::*;
use fltk::button::*;
use fltk::dialog::*;
use fltk::enums::*;
use fltk::frame::*;
use fltk::group::*;
use fltk::image::*;
use fltk::input::*;
use fltk::menu::*;
use fltk::misc::*;
use fltk::output::*;
use fltk::prelude::*;
use fltk::table::*;
use fltk::text::*;
use fltk::tree::*;
use fltk::valuator::*;
use fltk::widget::*;
use fltk::window::*;



#[derive(Debug, Clone, Default)]
pub struct UserInterface {
    pub my_win: Window,
    pub lb_ver: Output,
    pub cb_ver: Choice,
    pub btn_switch: Button,
}


impl UserInterface {
    pub fn make_window() -> Self {
	let mut my_win = Window::new(70, 556, 255, 50, "Switch");
	my_win.end();
	my_win.make_resizable(true);
	my_win.show();
	let mut fl2rust_widget_1 = Group::new(0, 0, 255, 50, None);
	fl2rust_widget_1.end();
	fl2rust_widget_1.make_resizable(true);
	my_win.add(&fl2rust_widget_1);
	my_win.resizable(&fl2rust_widget_1);
	let mut lb_ver = Output::new(60, 10, 0, 25, "版本：");
	lb_ver.set_label_type(LabelType::Normal);
	fl2rust_widget_1.add(&lb_ver);
	let mut cb_ver = Choice::new(70, 10, 100, 25, None);
	cb_ver.end();
	cb_ver.set_down_frame(FrameType::BorderBox);
	cb_ver.set_label_type(LabelType::None);
	fl2rust_widget_1.add(&cb_ver);
	let mut btn_switch = Button::new(180, 10, 60, 25, "切换");
	fl2rust_widget_1.add(&btn_switch);
	Self { my_win, lb_ver, cb_ver, btn_switch, ..Default::default() }
    }
}


